#include "SysConfig.h"

void SysConfig(void)
{   
		NVIC_InitPara NVIC_InitStructure;
		NVIC_InitStructure.NVIC_IRQ = SysTick_IRQn;
		NVIC_InitStructure.NVIC_IRQEnable = ENABLE;
		NVIC_InitStructure.NVIC_IRQPreemptPriority = 0;
		NVIC_InitStructure.NVIC_IRQSubPriority = 1;

    /* Setup SysTick Timer for 1000Hz interrupts */
    SysTick_Config(SystemCoreClock / 1000);
		NVIC_PRIGroup_Enable(NVIC_PRIGROUP_1);
		NVIC_Init(&NVIC_InitStructure);
		
}	


int fputc(int ch, FILE* stream)
{
		UartPrint.Write((uint8_t*)&ch,1,Write_Bytes);
    return ch;
}

